﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QLab.UX.Engine
{
    public class QLabProject
    {
        public string Name { get; set; }
        public string File 
        {
            get
            {
                return this.Name + ".qlproj";
            }
        }
        public string HomeFolderPath { get; set; }
        public QLabSolution ParentSolution { get; set; }
        public QLabFolder Folder { get; set; }

        public QLabProject(string homeFolderPath, string name, QLabSolution parentSolution, bool active)
        {
            if (!homeFolderPath.EndsWith("\\"))
                homeFolderPath += "\\";
            this.HomeFolderPath = homeFolderPath;
            this.Name = name;
            this.ParentSolution = parentSolution;
            this.Folder = new QLabFolder(null, this, this.Name, active);
        }
    }
}
